package com.qf.bootdaily.mapper;

import com.qf.bootdaily.entity.User;

import java.util.List;

/**
* @author wkk
* @description 针对表【user】的数据库操作Mapper
* @createDate 2022-05-28 15:51:10
* @Entity com.qf.bootdaily.entity.User
*/
public interface UserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(User record);



    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);



    //登录
    User login(String name);
    //注册用户
    int insertSelective(User record);
    //查全部,用于注册判断
    List<User> showAll();

}
